package com.frejoys.notify.controller;

import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.alipay.easysdk.factory.Factory;
import com.frejoys.common.aop.Authority;
import com.frejoys.common.aop.Authorization;
import com.frejoys.common.constant.CommonConstant;
import com.frejoys.common.enums.EPayStatus;
import com.frejoys.common.response.Result;
import com.frejoys.common.util.CacheKeyUtil;
import com.frejoys.common.vo.black.TmpVo;
import com.frejoys.common.vo.order.AttachVo;
import com.frejoys.service.EventPublisherService;
import com.frejoys.service.OrderService;
import com.frejoys.service.PayService;
import com.frejoys.service.TmpService;
import com.github.binarywang.wxpay.bean.notify.WxPayNotifyV3Result;
import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyV3Result;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/17 16:44
 */
@Tag(name = "临时过审", description = "临时过审")
@RestController
@RequiredArgsConstructor
@RequestMapping(CommonConstant.routePrefixNotify)
@Authorization(Authority.Public)
@Slf4j
public class TmpController {

    private final TmpService tmpService;

    /**
     * 查询支付参数数据
     */
    @Operation(summary = "查询提现名称")
    @PostMapping("/tmp/index")
   public Result<TmpVo> getOnly(){
        return Result.success(tmpService.getOnly());
    }
}
